{% extends "StartGroup/groupHome.html" %}
{% block content %}
    <script src="/{{ media_url }}contifyuser/js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
	$(document).ready(function(){$("button.delButton").click(function(){
	    var discid = $(this).attr('discid');
	    jQuery.ajax({
	      url: 'connectpeople/discussion/portal',
	      type: 'POST',
	      data: {'discid':discid},
	      dataType: 'json',
	      success: function(json){
		$("#discTableId").html(json.dataHtml);
	    },
	      error: function(xhr, ajaxOptions, thrownError){
		alert("An Error Has Occurred. Please try again.");
	      }
	    });
	});
	});

    </script>
       
    <div class="nobreak discussionPortal">
	<div class="nobreak discPortalActivitySection">
	    <div class="nobreak discPorTableHeaders">
		<div class="nobreak discPorTableTopicHeader">Topic</div>
		<div class="nobreak discPorTableAuthorHeader">Lastest By</div>
		<div class="nobreak discPorTablePostsHeader">Posts</div>
		<div class="nobreak discPorTableLastPostHeader">Last Post</div>
		<div class="nobreak discPorTableDeleteButtonHeader">&nbsp;</div>
	    </div>
	    <div id="discTableId" class="nobreak discPorTable discTableContentBckColor">
		{{dataHtml}}
	    </div>
	</div>
    </div>
{% endblock %}
